/**
 * Created by Administrator on 2017/1/10.
 */

  import {Injectable} from "@angular/core";
  import {Http,Response} from '@angular/http';
  import {Observable} from "rxjs/Observable";
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/toPromise';
@Injectable()
export class HomeService {
    constructor(private http: Http) {

    }
    public getHomeData(){
      var url = "http://localhost:9000/h5";
      return this.http.get(url).map(res => res.json());
    }
}
